package com.example.book.service;

import com.example.book.model.Employee;
import org.springframework.data.domain.Page;

import java.util.List;

public interface EmployeeService {
//    public  Employee findByName(String firstName);
    List < Employee > getAllEmployees();
    void saveEmployee(Employee employee);
    Employee getEmployeeById(long id);
    void deleteEmployeeById(long id);

    Page<Employee> findPaginated(int pageNo, int pageSize, String sortField, String sortDirection);
}